package a.i;

import a.c.v;
import a.c.y;
import a.c.z;

import java.util.Collection;
import java.util.Iterator;

public class h
{
  private Object[] a;
  private int b;
  private int c;
  private int d;
  private int e;
  private static final boolean f = true;
  public static boolean g;
  
  public h(int paramInt)
  {
    this.a = new Object[paramInt + 1];
    this.b = 0;
    this.c = (this.b + paramInt + 1);
    this.d = (this.e = this.b);
  }
  
  public h(Object[] paramArrayOfObject, int paramInt)
  {
    this(paramInt);
    do
    {
      for (int i = 0; !bool1; i++)
      {
        if (i >= paramArrayOfObject.length) {
          break;
        }
        b(paramArrayOfObject[i]);
      }
    } while (bool2);
  }
  
  public h(Collection paramCollection, int paramInt)
  {
    this(paramCollection.iterator(), paramInt);
  }
  
  public h(Iterator paramIterator, int paramInt)
  {
    this(paramInt);
    do
    {
      while (!bool1)
      {
        if (!paramIterator.hasNext()) {
          break;
        }
        b(paramIterator.next());
      }
    } while (bool2);
  }
  
  public h(z paramz, int paramInt)
  {
    this(paramInt);
    do
    {
      for (v localv = paramz.f(); !bool1; localv = localv.a())
      {
        if (localv == null) {
          break;
        }
        b(localv.c());
      }
    } while (bool2);
  }
  
  public h(y paramy, int paramInt)
  {
    this(paramInt);
    do
    {
      while (!bool1)
      {
        if (!paramy.e()) {
          break;
        }
        b(paramy.j());
        paramy.f();
      }
    } while (bool2);
  }
  
  public Object a()
  {
    return this.a[this.d];
  }
  
  public Object b()
  {
    Object localObject = this.a[(this.d++)];
    if (!p.b) {
      if (this.d == this.c) {
        this.d = this.b;
      }
    }
    return localObject;
  }
  
  public Object c()
  {
    Object localObject = this.a[(this.d++)];
    if (!p.b) {
      if (this.d == this.c) {
        this.d = this.b;
      }
    }
    return localObject;
  }
  
  public void a(Object paramObject)
  {
    this.a[(this.e++)] = paramObject;
    if ((p.b) || (this.e == this.c)) {
      this.e = this.b;
    }
  }
  
  public void b(Object paramObject)
  {
    this.a[(this.e++)] = paramObject;
    if ((p.b) || (this.e == this.c)) {
      this.e = this.b;
    }
  }
  
  public void d()
  {
    this.d = (this.e = this.b);
  }
  
  public int e()
  {
    int i = this.e - this.d;
    if (!p.b) {}
    return i < 0 ? this.c - this.b + i : i;
  }
  
  public int f()
  {
    return this.a.length - 1;
  }
  
  public boolean g()
  {
    if (!p.b) {}
    return this.d == this.e;
  }
  
  public String toString()
  {
    boolean bool2 = p.b;
    boolean bool1 = p.a;
    String str = "size=[" + e() + ']';
    int i = this.d;
    do
    {
      do
      {
        if (i >= this.e) {
          break;
        }
        if (bool1) {
          break label114;
        }
        if (i >= this.c) {
          break;
        }
        str = str + ' ' + this.a[i].toString();
        i++;
      } while (!bool1);
    } while (bool2);
    label114:
    if (this.e < this.d) {}
    while (bool2) {
      for (i = this.b; !bool1; i++)
      {
        if (i >= this.e) {
          break;
        }
        if (bool1) {
          break label179;
        }
        str = str + ' ' + this.a[i].toString();
      }
    }
    label179:
    return str;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.i.h

 * JD-Core Version:    0.7.0.1

 */